from agent_app import AgentApp


def init_app(app: AgentApp):
    from commands.commands import (
        test,
        init_tenant,
        init_area_code,
        create_tenant,
        reset_email,
        reset_encrypt_key_pair,
        reset_password,
        upgrade_db,
    )

    cmds_to_register = [
        test,
        init_tenant,
        init_area_code,
        reset_password,
        reset_email,
        reset_encrypt_key_pair,
        create_tenant,
        upgrade_db,
    ]
    for cmd in cmds_to_register:
        app.cli.add_command(cmd)
